<template>
    <div class="person">
        <div class="person-head">
            <div class="head-left">
                <i class="iconfont icon-shezhi"></i>
            </div>
            <div class="head-right">
                <i class="iconfont icon-xiaoxi"></i>
                <i class="iconfont icon-fenxiang"></i>
            </div>
        </div>
        <div class="person-data">
            <div class="data-box">
                <div class="box-top">
                    <div class="img-box">
                        <img src="../assets/img/cook.png" alt="">
                    </div>
                    <div class="other-box">
                        <div class="name">我是xxx</div>
                        <div class="lv">lv6</div>
                    </div>
                </div>
                <div class="box-age">大厨&nbsp;&nbsp;厨龄  10年</div>
                <div class="box-autograph">吃货不是在吃就是在去吃的路上，没时间写签名</div>
                <div class="other-data">
                    <div class="text-box">
                        <div class="num">3</div>
                        <div class="words">关注</div>
                    </div>
                    <div class="text-box">
                        <div class="num">100w</div>
                        <div class="words">粉丝</div>
                    </div>
                    <div class="text-box">
                        <div class="num">10w</div>
                        <div class="words">被收藏</div>
                    </div>
                    <div class="text-box">
                        <div class="num">200w</div>
                        <div class="words">被学做</div>
                    </div>
                    <div class="text-box">
                        <div class="num">???</div>
                        <div class="words">经验值</div>
                    </div>
                </div>

                <div class="other-icons">
                    <div class="icon-box">
                        <div class="icon">
                            <i class="iconfont icon-chuangzuozhezhongxin"></i>
                        </div>
                        <div class="icon-text">创作者中心</div>
                    </div>
                    <div class="icon-box">
                        <div class="icon">
                            <i class="iconfont icon-caogaoxiang"></i>
                        </div>
                        <div class="icon-text">草稿箱</div>
                    </div>
                    <div class="icon-box">
                        <div class="icon">
                            <i class="iconfont icon-ico_yiyuanguanjia_shanshiguanli"></i>
                        </div>
                        <div class="icon-text">膳食管理</div>
                    </div>
                    <div class="icon-box">
                        <div class="icon">
                            <i class="iconfont icon-chuju"></i>
                        </div>
                        <div class="icon-text">厨具管理</div>
                    </div>
                    <div class="icon-box">
                        <div class="icon">
                            <i class="iconfont icon-zuijinliulan"></i>
                        </div>
                        <div class="icon-text">最近浏览</div>
                    </div>
                    <div class="icon-box">
                        <div class="icon">
                            <i class="iconfont icon-dangao"></i>
                        </div>
                        <div class="icon-text">采购清单</div>
                    </div>
                    <div class="icon-box">
                        <div class="icon">
                            <i class="iconfont icon-kecheng"></i>
                        </div>
                        <div class="icon-text">电子书课程</div>
                    </div>
                    <div class="icon-box">
                        <div class="icon">
                            <i class="iconfont icon-qianbao"></i>
                        </div>
                        <div class="icon-text">钱包</div>
                    </div>
                    <div class="icon-box">
                        <div class="icon">
                            <i class="iconfont icon-wodeyouhuijuan"></i>
                        </div>
                        <div class="icon-text">优惠券</div>
                    </div>
                    <div class="icon-box">
                        <div class="icon">
                            <i class="iconfont icon-dingdan"></i>
                        </div>
                        <div class="icon-text">订单</div>
                    </div>
                </div>

                <div class="btn-quit" v-on:click="quitLogin">
                    退出登录
                </div>
            </div>
        </div>
        <Hisfooter/>
    </div>
</template>

<script>
import Hisfooter from '@/components/footer.vue'
export default {
    components:{
        Hisfooter
    },
    methods:{
        quitLogin(){
            localStorage.setItem("isLogin",JSON.stringify(false));
            this.$router.push('/home')
        }
    }
}
</script>

<style lang="scss">
    .person{
        width: 100%;
        // padding: 0 10px;
        box-sizing: border-box;
        .person-head{
            height: 50px;
            width: 100%;
            padding: 10px 10px;
            box-sizing: border-box;
            display: flex;
            justify-content: space-between;
            .head-left{
                width: 30px;
                height: 30px;
                font-size: 0;
                i{
                    display: block;
                    height: 30px;
                    width: 30px;
                    font-size: 30px;
                    line-height: 30px;
                    text-align: center;
                }
            }
            .head-right{
                width: 70px;
                height: 30px;
                font-size: 0;
                display: flex;
                justify-content: space-between;
                i{
                    display: block;
                    height: 30px;
                    width: 30px;
                    font-size: 30px;
                    line-height: 30px;
                    text-align: center;
                }
            }
        }
        .person-data{
            .data-box{
                width: 100%;
                padding: 0 10px;
                box-sizing: border-box;
                .box-top{
                    height: 100px;
                    width: 100%;
                    display: flex;
                    .img-box{
                        width: 100px;
                        height: 100px;
                        font-size: 0;
                        img{
                            margin: 0;
                            padding: 0;
                            width: 100px;
                            height: 100px;
                            border-radius: 50%;
                        }
                    }
                    .other-box{
                        height: 100px;
                        margin-left: 20px;
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        .name{
                            font-size: 30px;
                        }
                        .lv{
                            font-size: 12px;
                        }
                    }
                }
                .box-age{
                    font-size: 16px;
                    margin-bottom: 10px;
                }
                .box-autograph{
                    
                    font-size: 16px;
                    margin-bottom: 20px;
                }
                .other-data{
                    display: flex;
                    
                    justify-content: space-between;
                    
                    margin-bottom: 20px;
                    .text-box{
                        flex-basis: 20%;
                        flex-shrink: 0;
                        height: 50px;
                        font-size: 0;
                        padding: 5px 0;
                        .num{
                            font-size: 14px;
                            text-align: center;
                        }
                        .words{
                            font-size: 12px;
                            text-align: center;
                        }
                    }
                }

                .other-icons{
                    width: 100%;
                    display: flex;
                    justify-content: space-between;
                    flex-wrap: wrap;
                    flex-shrink: 0;
                    .icon-box{
                        width: 20%;
                        height: 50px;
                        margin-bottom: 10px;
                        .icon{
                            font-size: 20px;
                            text-align: center;
                            i{}
                        }
                        .icon-text{
                            font-size: 12px;
                            text-align: center;
                        }
                    }
                }

                .btn-quit{
                    width: 100px;
                    height: 30px;
                    margin: 20px auto;
                    border-radius: 15px;
                    background-color: orangered;
                    font-size: 20px;
                    text-align: center;
                    line-height: 30px;
                }
            }
        }
    }
</style>